# _*_ coding: utf-8 _*_
# @Time : 2024-01-20 19:11
# @Author : wf
# 安装 ： pip install requests

import requests

response = requests.get('http://www.baidu.com', )
print(type(response))

# 编码格式
response.encoding = 'utf-8'
# 返回内容
content = response.text
# print(content)

print(response.url)
# 返回二进制的数据
# print(response.content)

print(response.status_code)
print(response.headers)
print(response.history)
